adTempus API
PreviousUpNext
IScheduler::CanPerform Method

Determines whether the user has the necessary permission to perform a specified action against the server.

C++
HRESULT CanPerform(SecurityActionsEnum action, [out,retval] VARIANT_BOOL * canPerform);
C#
CanPerform(SecurityActionsEnum action, [out,retval] VARIANT_BOOL canPerform);
Visual Basic
Sub CanPerform(action As SecurityActionsEnum, canPerform As [out,retval] VARIANT_BOOL)
Parameters 
Description 
[in] SecurityActionsEnum action 
The action being queried. 
[out,retval] VARIANT_BOOL * canPerform 
The return value. 

True if the caller has permission to perform the specified action; False otherwise.

This method checks security at the server level (for things like ability to connect to the server). To check permissions for an individual object, use IADTObject.CanPerform

See the ServerSecurityDescriptor topic for a list of security actions that apply to the Scheduler.

adTempus API Reference version 3.0.0.0, revised 10/30/2008